#include <iostream>
#include <gtest/gtest.h>
#include "OPE.h"
#include "ValueRange.h"

using namespace std;

int main(int argc, char **argv) {
    uint plaintext1 = 25;
    uint plaintext2 = 26;
    OPE cipher = OPE();
    uint ciphertext1 = cipher.encrypt(plaintext1);
    uint ciphertext2 = cipher.encrypt(plaintext2);

    cout << endl;
    cout << "---------------  一个示例：加密两个明文  ---------------" << endl;
    cout << "随机生成秘钥" << endl;
    cout << "保序加密前的明文：\t" << plaintext1 << "\t\t" << plaintext2 << endl;
    cout << "保序加密后的密文：\t" << ciphertext1 << "\t\t" << ciphertext2 << endl;
    cout << endl;

    ::testing::InitGoogleTest(&argc, argv);
    return RUN_ALL_TESTS();
}
